package com.joyoung.common.utils;

import android.app.Activity;
import android.arch.lifecycle.LifecycleOwner;
import android.content.Context;


import com.joyoung.common.BaseApplication;

import java.lang.ref.WeakReference;

/**
 * Context Utils
 *
 */
@SuppressWarnings({"WeakerAccess", "unused"})
public final class AppUtil {

    public static Context getContext() {
        return BaseApplication.getAppContext();
    }

    public static LifecycleOwner getLastLifecycleOwner() {
        return BaseApplication.getLastLifecycleOwner();
    }

    public static WeakReference<Activity> getLastResumeActivityReference() {
        return BaseApplication.getLastResumeActivityReference();
    }
}
